﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;

namespace FDEEMain
{
    [XmlType(TypeName = "REBERITEM")]
    public class ReberItem
    {
        [XmlElementAttribute("TYPE")]
        public string Type { get; set; }

        [XmlArray("PARAMENTS")]
        public List<ParaItem> Parament { get; set; }
    }

    [XmlType(TypeName = "PARAMENT")]
    public class ParaItem
    {
        [XmlElementAttribute("KEY")]
        public string Key { get; set; }

        [XmlElementAttribute("NAME")]
        public string Name { get; set; }

        [XmlElementAttribute("VALUES")]
        public string Values { get; set; }

        [XmlElementAttribute("VALUETYPE")]
        public string ValueType { get; set; }
    }

    [XmlType(TypeName = "FDEEREBER")]
    public class FDEEReber
    {
        /// <summary>
        /// 参数列表
        /// </summary>
        [XmlArray("REBERITEMS")]
        public List<ReberItem> ReberItems
        {
            get;
            set;
        }
       
    }
}
